<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Change the priority of the current process</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.proc-get-status.html">proc_get_status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.proc-open.html">proc_open</a></div>
 <div class="up"><a href="ref.exec.html">Program execution 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.proc-nice" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">proc_nice</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">proc_nice</span> &mdash; <span class="dc-title">Change the priority of the current process</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.proc-nice-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>proc_nice</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$increment</code></span>
   )</div>

  <p class="para rdfs-comment">
   <span class="function"><strong>proc_nice()</strong></span> changes the priority of the current
   process by the amount specified in <em><code class="parameter">increment</code></em>. A
   positive <em><code class="parameter">increment</code></em> will lower the priority of the
   current process, whereas a negative <em><code class="parameter">increment</code></em>
   will raise the priority.
  </p>
  <p class="para">
   <span class="function"><strong>proc_nice()</strong></span> is not related to
   <span class="function"><a href="function.proc-open.html" class="function">proc_open()</a></span> and its associated functions in any way.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.proc-nice-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">increment</code></em></dt>

     <dd>

      <p class="para">
       The increment value of the priority change.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.proc-nice-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
   If an error occurs, like the user lacks permission to change the priority, 
   an error of level <strong><code>E_WARNING</code></strong> is also generated.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.proc-nice-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <strong>Availability</strong><br />
   <p class="para">
    <span class="function"><strong>proc_nice()</strong></span> will only exist if your system has &#039;nice&#039;
    capabilities. &#039;nice&#039; conforms to: SVr4, SVID EXT, AT&amp;T, X/OPEN, BSD
    4.3. This means that <span class="function"><strong>proc_nice()</strong></span> is not available
    on Windows.
   </p>
  </p></blockquote>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.proc-get-status.html">proc_get_status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.proc-open.html">proc_open</a></div>
 <div class="up"><a href="ref.exec.html">Program execution 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
